<?php
include_once 'ns_includes.php';

//$testDB = new ns_dao('nordic-sauna-web','web_access','localhost','nordic-sauna');

//$DB = new database();

//$results = $DB->query("select * from `{$DB->DB()}`.`user` ");

//logger::variable($results);

?>

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Nordic Sauna Test - main </title>
    </head>
    <body>
        <h1>Nordic Sauna Test - main</h1>
        
        <?php
            //echo matrix::toHTML($results);
            
            echo $testDB->dbUser."<br />";
            echo $testDB->dbPass."<br />";
            echo $testDB->dbHost."<br />";
            echo $testDB->dbName."<br />";
            
            
            $results = $testDB->getAllUsers();
            echo matrix::toHTML($results);
        ?>
    </body>
</html>
